package com.ctshk.rpc.finance.req.paidin;

import com.ctshk.rpc.finance.json.FileJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 供应商实付-申请付款Req
 */
@Data
@ApiModel(value = "PaidInAddReq",description = "申请付款Req")
public class PaidInAddReq implements Serializable {

    @ApiModelProperty(value = "实付ID(编辑的时候传)")
    private Long id;

    @NotNull(message = "操作类型不能为空")
    @ApiModelProperty(value = "操作类型(1 保存,2 提交审批)",required = true)
    private Integer type;

    @NotNull(message = "供应商ID不能为空")
    @ApiModelProperty(value = "供应商ID",required = true)
    private Long supplierId;

    @NotNull(message = "供应商名称不能为空")
    @ApiModelProperty(value = "供应商名称",required = true)
    private String supplierName;

    @ApiModelProperty(value = "附件")
    private List<FileJson> filesJson;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = "是否使用预付款不能为空")
    @ApiModelProperty(value = "是否使用预付款(0 否,1 是)",required = true)
    private Integer useAdvanceCharge;

    @NotNull(message = "供应商对账单列表不能为空")
    @ApiModelProperty(value = "供应商对账单列表",required = true)
    private List<PaidInDetailAddReq> detailReqList;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

}
